package ualrcdg.server.validators;

import java.io.InputStream;
import java.util.HashMap;

/**
 * Template class for server-side rule validation implementations.
 */
public class BlankClass extends AbstractRuleValidator
{
	private static final BlankClass instance = new BlankClass( );
	/* LATER fill Rule name */ private static final String rule = "TODO";
	/* LATER fill class name*/ private static final String className = "TODO";
	
	/**
	 * Private nullary constructor
	 */
	private BlankClass( )
	{
	}

	/**
	 * @return the singleton instance of this class
	 */
	@Override
	public BlankClass getInstance( )
	{
		return instance;
	}
	
	/*
	 * @see ualrcdg.server.validators.AbstractRuleValidator#validateRule(java.lang.String, java.util.HashMap, java.io.InputStream)
	 */
	@Override
	public boolean validateRule( String rule, HashMap< String, String > parameters, InputStream input )
	{
		if( rule == null || parameters == null || input == null )
		{
			throw new NullPointerException( );
		}
		
		if( !BlankClass.rule.equals( rule ) )
		{
			return false;
		}

		System.out.println( className + ": checking " + parameters.toString( ) + " against " + input.toString( ) );
		
		// LATER Complete rule validation implementation
		return false;
	}
}
